'use strict';

const { getDB } = require('../../external/mongoClient');
const { COLLECTION_NAMES } = require('../../constants');

function getChecker() {
  return async() => {
    const db = await getDB();
    // const collection = db.collection(COLLECTION_NAMES.USERS);
    return !!db;
  };
}

Object.assign(module.exports, {
  getChecker,
});
